<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head>
        <title>Create Degree Program</title>
    </h:head>
    <h:body>
        <h:message style="color:red" for="form"></h:message>
        <h:form id="form">
            <p>
                <h:message style="color:red" for="identifier"></h:message>
                Identifier:<h:inputText id="identifier" required="true" value="#{degreeProgramBean.identifier}"></h:inputText>
            </p>
            <p>
                <h:message style="color:red" for="seqNum" />
                SeqNum:<h:inputText id="seqNum" required="true" value="#{degreeProgramBean.seqNum}" >
                    <f:convertNumber integerOnly="true"></f:convertNumber>
                </h:inputText>
            </p>
            <p>
                <h:message style="color:red" for="description" />
                Description:<h:inputText id="description" required="true" value="#{degreeProgramBean.description}"></h:inputText>
            </p>
            <p>
                <h:message style="color:red" for="department" />
                Department:<h:inputText id="department" required="true" value="#{degreeProgramBean.department}"></h:inputText>
            </p>
            <h:commandButton id='submit' value="Submit" action="#{degreeProgramBean.createDegreeProgram()}" />
<!--            <p>
                Course outcome survey result 
                <h:selectManyCheckbox value="#{degreeProgramBean.getpEOs()}">
                    <f:selectItems value="#{degreeProgramBean.allPEOs}" var="peo"
                                   itemLabel="#{peo.identifier}" itemValue="#{peo.identifier}" />
                </h:selectManyCheckbox>
            </p>-->
<!--            <p>
                Student outcome survey result 
                <h:selectManyCheckbox value="#{degreeProgramBean.studentOutcomes}">
                    <f:selectItems value="#{degreeProgramBean.allStudentOutcomes}" var="so"
                                   itemLabel="#{so.identifier}" itemValue="#{so.identifier}" />
                </h:selectManyCheckbox>
            </p>-->
        </h:form>
    </h:body>
</html>

